﻿@{
    ViewBag.Title = "炒股技巧";
    Layout = "~/Views/Shared/_Layout.cshtml";  
}
<style>
    .abc {
    }
</style>
<script type="text/javascript">

    $(function () {
        var activeid = "@ViewBag.active";
        $(".on").removeClass("on");
        $("#" + activeid).addClass("on");
        showDetail();
        $(".abc").click(function () {
            activeid = $(this).attr("id");
            $(".on").removeClass("on");
            $("#" + activeid).addClass("on");
            showDetail();
        });
        function showDetail() {
            $.post("@Url.Action("GetNewsList","News")", { meid: activeid, size: 1000, index: 0, ran: Math.random() }, function (data) {
                if (data != "") {
                    var list = eval(data);
                    var str = "";
                    for (var j = 0; j < list.length; j++) {
                        str += "<div class='cpbj_say'><div class='cgjq_tit1'><span class='fl'><strong>" + list[j].title + "</strong></span><span class='fr'><a href='@Url.Action("GetNewsList","News")?openid=@ViewBag.openid&nid=" + list[j].ID + "' class='blue fz12'>查看全文></a></span><div class='clear'></div></div><p>" + list[j].Summary + "</p></div>";
                    }
                    $(".cpbj_sayk").html(str);
                }
            });
        }
    });

</script>
<div class="title1" style="padding: 0;">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                @{for (int i = 0; i < ViewBag.menus.Count; i++)
                  {
                    <td align="center" valign="middle" class="abc" id="@ViewBag.menus[i].meid"><a>@ViewBag.menus[i].name</a></td>
                  }}
            </tr>
        </tbody>
    </table>
</div>
<div class="cpbj_sayk">
</div>
